<?php
namespace BP\Sys;

use BP\En\EntityNoName;

class ExcelTable extends EntityNoName {
	public function getFK_ExcelFile () 
	{
		return $this->GetValStrByKey(ExcelTableAttr::$FK_ExcelFile);
	}
	public function setFK_ExcelFile ($value) // [String value]
	{
		$this->SetValByKey(ExcelTableAttr::$FK_ExcelFile, $value);
	}
	public function getIsDtl () 
	{
		return $this->GetValBooleanByKey(ExcelTableAttr::$IsDtl);
	}
	public function setIsDtl ($value) // [boolean value]
	{
		$this->SetValByKey(ExcelTableAttr::$IsDtl, $value);
	}
	public function getNote () 
	{
		return $this->GetValStrByKey(ExcelTableAttr::$Note);
	}
	public function setNote ($value) // [String value]
	{
		$this->SetValByKey(ExcelTableAttr::$Note, $value);
	}
	public function getSyncToTable () 
	{
		return $this->GetValStrByKey(ExcelTableAttr::$SyncToTable);
	}
	public function setSyncToTable ($value) // [String value]
	{
		$this->SetValByKey(ExcelTableAttr::$SyncToTable, $value);
	}
	public static function constructor__ () 
	{
		$me = new self();
		return $me;
	}
	public function getHisUAC () 
	{
		$uac = new UAC();
		$uac->OpenAll();
		return $uac;
	}
	public function getEnMap () 
	{
		if (($this->get_enMap() != NULL))
		{
			return $this->get_enMap();
		}
		$map = new Map("Sys_ExcelTable");
		$map->setEnDesc("Excel数据�?");
		$map->AddTBStringPK(ExcelTableAttr::$No, NULL, "编号",  TRUE ,  TRUE , 1, 36, 200);
		$map->AddTBString(ExcelTableAttr::$Name, NULL, "数据表名",  TRUE ,  FALSE , 1, 50, 100);
		$map->AddDDLEntities(ExcelTableAttr::$FK_ExcelFile, NULL, "Excel模板", ExcelFiles::constructor__(),  TRUE );
		$map->AddBoolean(ExcelTableAttr::$IsDtl,  FALSE , "是否明细�?",  TRUE ,  FALSE );
		$map->AddTBStringDoc(ExcelTableAttr::$Note, NULL, "数据表说�?",  TRUE ,  FALSE ,  TRUE );
		$map->AddTBString(ExcelTableAttr::$SyncToTable, NULL, "同步到表",  TRUE ,  FALSE , 1, 100, 100);
		$this->set_enMap($map);
		return $this->get_enMap();
	}
	protected function beforeInsert () 
	{
		return parent->beforeInsert();
	}
}
?>
